// simpled WICTextureLoader From DirectXTK
#ifndef ImageLoader_h__
#define ImageLoader_h__
#include <d3d11.h>

#pragma warning(push)
#pragma warning(disable : 4005)
#include <stdint.h>
#pragma warning(pop)

namespace PracEng
{
	class ImageLoader
	{
	public:
		static HRESULT CreateWICTextureFromFile(ID3D11Device* d3dDevice, ID3D11DeviceContext* d3dContext, const wchar_t* szFileName
			, ID3D11Resource** texture, ID3D11ShaderResourceView** textureView, size_t maxsize = 0, UINT Forcefmt = 0);

		static HRESULT CreateWICTextureFromFileEx(ID3D11Device* d3dDevice, ID3D11DeviceContext* d3dContext, const wchar_t* szFileName
			, size_t maxsize, D3D11_USAGE usage, unsigned int bindFlags, unsigned int cpuAccessFlags
			, unsigned int miscFlags, bool forceSRGB, ID3D11Resource** texture, ID3D11ShaderResourceView** textureView, UINT Forcefmt = 0);
		
	};

	
}

#endif // ImageLoader_h__
